package com.hducms.cms.entity.front;

public class ContentM {

	//内容id
	private Integer id;
	//标题
	private String t;
	//内容
	private String txt;
	//时间字符串
	private String data;
	//作者
	private String author;
	/**
	 * 是否阅读过
	 */
	private int isread;
	/**
	 * 评论的条数
	 */
	private int commentCount;
	
	public ContentM() {
		super();
	}

	public ContentM(Integer id, String t, String txt, String data, String author) {
		super();
		this.id = id;
		this.t = t;
		this.txt = txt;
		this.data = data;
		this.author = author;
	}
	public ContentM(Integer id, String t, String txt, String data, String author,int isread,int commentCount) {
		super();
		this.id = id;
		this.t = t;
		this.txt = txt;
		this.data = data;
		this.author = author;
		this.isread=isread;
		this.commentCount=commentCount;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getT() {
		return t;
	}
	public void setT(String t) {
		this.t = t;
	}
	public String getTxt() {
		return txt;
	}
	public void setTxt(String txt) {
		this.txt = txt;
	}
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}

	
	
	public int getIsread() {
		return isread;
	}

	public void setIsread(int isread) {
		this.isread = isread;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	@Override
	public String toString() {
		return "ContentM [id=" + id + ", t=" + t + ", txt=" + txt + ", data="
				+ data + ", author=" + author + ", isread=" + isread
				+ ", commentCount=" + commentCount + "]";
	}
	
}
